<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript">
	// 方法一
	// var shuzi = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33];//定义用来存储数字的数组
	// var caipiao = [];//空数组，用来存储抽出来的结果
	// for(var i=0;i<7;i++){
	// 	var num = Math.floor(Math.random()*shuzi.length);//抽取随机下标
	// 	caipiao.push(shuzi[num]);//将抽出来的数字追加到caipiao数组中
	// 	shuzi.splice(num,1);//将num号元素删除
	// }
	// document.write(caipiao);

	var shuzi = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33];
	for(var i=0;i<26;i++){
		var num = Math.floor(Math.random()*shuzi.length);
		shuzi.splice(num,1);//删除对应的数据
	}
	document.write(shuzi);
</script>
</head>

<body>

</body>
</html>
